<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    img {
      width: 100%;
    }

    ul {
      list-style: none;
    }

    .box {
      width: 600px;
      height: 112px;
      border: 5px solid #000;
      margin: 100px auto;
      overflow: hidden;
    }

    .box ul {
      width: 2000px;
      /* 匀速循环移动 */
      animation: move 8s infinite linear;
    }

    .box li {
      float: left;
      width: 200px;
    }

    @keyframes move {
      to {
        transform: translateX(-1400px);
      }
    }

    .box:hover ul{
      /* 鼠标hover时，动画暂停 */
      animation-play-state: paused;
    }
  </style>
</head>
<body>
  <div class="box">
    <ul>
      <li><img src="./images/1.png" alt=""></li>
      <li><img src="./images/2.png" alt=""></li>
      <li><img src="./images/3.png" alt=""></li>
      <li><img src="./images/4.png" alt=""></li>
      <li><img src="./images/5.png" alt=""></li>
      <li><img src="./images/6.png" alt=""></li>
      <li><img src="./images/7.png" alt=""></li>
      <!-- 因为box显示的是三张图，所以这里要复制前面的三张图来作无缝动画，使其显示区域不留白 -->
      <!-- 复制多少张图，就看显示区域显示的是多少张图 -->
      <li><img src="./images/1.png" alt=""></li>
      <li><img src="./images/2.png" alt=""></li>
      <li><img src="./images/3.png" alt=""></li>
    </ul>
  </div>
</body>
</html>